package com.example.basicdemo.model.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class RegisterAppKeyReq {

    /**
     * 获得授权的应用code
     */
    private String appCode;

    /**
     * 获得授权的应用的 具体权限列表
     */
    private List<App> permission;

    @Data
    @Accessors(chain = true)
    public static class App {
        private String appCode;

        private List<Service> serviceList;
    }

    @Data
    @Accessors(chain = true)
    public static class Service {
        private String serviceId;

        private List<String> apiList;
    }

}
